<{include file="Public/top.html" }>
</head>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">积分商城</div>
        <{include file= "PointMall/nav.html"}>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="" method="get" id="searchForm" class="ui-form reportForm">
                    <input name="m" type="hidden" value="<{$module}>">
                    <input name="c" type="hidden" value="<{$controller}>">
                    <input name="a" type="hidden" value="<{$action}>">

                    <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                    <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">

                    <div class="ui-form-item inline-block">
                        <label class="ui-label">关键字</label>
                        <input type="text" value="<{$keywords}>" name="keywords" placeholder="标题" class="ui-text bg-text keyword" />
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">分类</label>
                        <select name="deliveryType" class="ui-select" style="width: 100px;">
                            <option value="">选择分类</option>
                            <{foreach from = $typelist key=key item=item}>
                                <option value="<{$key}>" <{if $key eq $deliveryType}>selected<{/if}>><{$item}></option>
                            <{/foreach}>
                        </select>
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" onclick="LayerShow();">搜 索</button>
                    </div>
                </form>
            </div>
        </div>
        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                    <tr>
                        <th class="pct20">标题</th>
                        <{if $userLevelSwitch}><th class="pct10">会员等级</th><{/if}>
                        <th class="pct10">分类</th>
                        <th class="pct10">积分</th>
                        <th class="pct10">现价</th>
                        <th class="pct10">库存</th>
                        <th class="pct10">已买</th>
                        <th class="pct10">关注</th>
                        <th class="pct20">兑换结束时间</th>
                        <th class="pct20 last-col">操作</th>
                    </tr>
                </thead>
                <tbody>
                <{foreach from=$end_list item=item}>
                    <tr>
                        <!--<td><input type="text" value="<{$item}>" class="ui-text" required/></td>-->
                        <td><a href="<{$WEBSITE}>wap.php?m=Wap&c=PointMall&a=info&id=<{$item['id']}>" target="_blank"><{$item.titleInner}></a></td>
                        <{if $userLevelSwitch}><td><{$item.userLevelRequire}></td><{/if}>
                        <td><{$typelist[$item.deliveryType]}></td>
                        <td><{$item.point}></td>
                        <td><{$item.nowPrice}></td>
                        <td><{$item.stock}></td>
                        <td><{$item.buyNum}></td>
                        <td><{$item.views}></td>
                        <td><{'Y-m-d H:i'|date:$item.endExchangeTimestamp}></td>
                        <td class="ta_l">
                            <div class="handler">
                                <a href="<{u('PointMall/exchangeEdit?id='|cat:$item['id'])}> " onclick="LayerShow();">修改</a>
                                <span class="sep">|</span>
                                <a href="<{u('PointMall/exchangeSearch?id='|cat:$item['id'])}> " onclick="LayerShow();">查看兑换</a>
                                <span class="sep">|</span>
                                <a href="<{u('PointMall/exchangeDelete?id='|cat:$item['id'])}> " onclick="if(!confirm('您确认要删除此数据吗?删除后数据不能恢复!'))return false;">删除</a>
                            </div>
                        </td>
                    </tr>
                <{/foreach}>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <{include file="Public/page.html"}>
        </div>
    </div>
</div>
<{include file="Public/foot.html" }>